using UnityEngine;
using System.Collections;

public class SpellManager : MonoBehaviour 
{

	public Base_Spell[] Col_Spell;	
	public bool SpellCasting = false;
	private bool found = false;
	private bool toggleTxt = false;
	private bool visible = true;
	public int spell;

	void Start ()
	{
/*		tornadoVictim = null;
		other = grid.GetComponent<Grid>();*/
	}

	void Update () 
	{
		int x, y;
		RaycastHit hit;
   		Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);

		if(toggleTxt && Input.GetMouseButtonDown(0) && Physics.Raycast(ray,out hit ,100))
		{ 

		}
		found = false;


		if(Input.GetKeyDown("b"))
		{
			if(!toggleTxt)
			{
				toggleTxt = true;
			}
			else
			{
				toggleTxt = false;
			}
		}
	}

	void OnGUI()
	{

	}


	void IsCasting(bool state)
	{
		//SpellCasting = state;	
	}

/*	void ApplySpell(Tile target)
	{

	}
	public void cast(Tile target){

	}
	void IsInRange(int x, int y, int d)
	{
		//irrelevant function
	}
	bool spellAvailable(){

	}
	*/
}
